package com.zzzy.task;


import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.zzzy.service.SomeService;
 
@Component
public class TaskTwo {
	protected static final Logger logger=Logger.getLogger(TaskTwo.class);
	
	@Autowired
	private SomeService someService;
	
	public void doIt(){
		logger.info("-----定时任务执行-----");
		someService.doSome();
	}
}
